package com.lenovo.gpsautotest;

import android.annotation.SuppressLint;
import android.location.GnssStatus;
import android.location.GpsStatus;
import android.util.Log;

/**
 * @ProjectName: GpsAutoTest
 * @Package: com.lenovo.gpsautotest
 * @ClassName: GnssStatusListener
 * @Description: GpsStatusListener类作用描述
 * @Author: kgzhou
 * @CreateDate: 2019/5/30 14:24
 * @UpdateUser: kgzhou
 * @UpdateDate: 2019/5/30 14:24
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
@SuppressLint("NewApi")
public class GnssStatusListener extends GnssStatus.Callback {
    private static final String TAG = GnssStatusListener.class.getSimpleName();

    @Override
    public void onFirstFix(int ttffMillis) {
        Log.d(TAG, "onFirstFix: --------------");
        super.onFirstFix(ttffMillis);
    }

    @Override
    public void onSatelliteStatusChanged(GnssStatus status) {
        Log.d(TAG, "onSatelliteStatusChanged: -----------------");
        super.onSatelliteStatusChanged(status);
    }

    @Override
    public void onStarted() {
        Log.d(TAG, "onStarted: --------------------------------");
        super.onStarted();
    }

    @Override
    public void onStopped() {
        Log.d(TAG, "onStopped: ------------------------------");
        super.onStopped();
    }
}
